package com.itheima.dao.impl;

import com.itheima.dao.UserDao;
import com.itheima.pojo.User;
import org.springframework.beans.factory.FactoryBean;

public class UserDaoFactory implements FactoryBean<UserDao> {
    private User user;

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public UserDao getObject() throws Exception {
        return new UserImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return UserDao.class;
    }
}
